CFLAGS+=-c -Wall -g
CC=gcc
all:main
obj = Ringbuf.o Ringbuf_main.o
main:$(obj)
	$(CC) $^ -o $@

Ringbuf.o:Ringbuf.c
	$(CC) $^ $(CFLAGS) -o $@
Ringbuf_main.o:Ringbuf_main.c
	$(CC) $^ $(CFLAGS) -o $@

# .PHONY:clean
clean:
	del $(obj) main.exe
